package com.caterina.components;

import javax.swing.JPasswordField;

import com.caterina.resources.CBorders;
import com.caterina.resources.CFont;

public class CPasswordField extends JPasswordField{
	public CPasswordField(int len){
		this("",len);
	}
	public CPasswordField(String text, int len) {
		super(len);
		this.setFont(CFont.CTEXT_STANDARD);
		this.setBorder(CBorders.FIELDS_BORDER);
		this.setText(text);
	}
	public String getPwd(){
		char[] pwd=this.getPassword();
		StringBuilder sb=new StringBuilder();
		sb.append(pwd);
		return sb.toString();
	}
	private static final long serialVersionUID = 1L;
}
